package com.ruoyi.cms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CrmMeetRoomMapper;
import com.ruoyi.cms.domain.CrmMeetRoom;
import com.ruoyi.cms.service.ICrmMeetRoomService;

/**
 * 会议室Service业务层处理
 * 
 * @author hct
 * @date 2022-10-06
 */
@Service
public class CrmMeetRoomServiceImpl implements ICrmMeetRoomService 
{
    @Autowired
    private CrmMeetRoomMapper crmMeetRoomMapper;

    /**
     * 查询会议室
     * 
     * @param id 会议室主键
     * @return 会议室
     */
    @Override
    public CrmMeetRoom selectCrmMeetRoomById(Long id)
    {
        return crmMeetRoomMapper.selectCrmMeetRoomById(id);
    }

    /**
     * 查询会议室列表
     * 
     * @param crmMeetRoom 会议室
     * @return 会议室
     */
    @Override
    public List<CrmMeetRoom> selectCrmMeetRoomList(CrmMeetRoom crmMeetRoom)
    {
        return crmMeetRoomMapper.selectCrmMeetRoomList(crmMeetRoom);
    }

    /**
     * 新增会议室
     * 
     * @param crmMeetRoom 会议室
     * @return 结果
     */
    @Override
    public int insertCrmMeetRoom(CrmMeetRoom crmMeetRoom)
    {
        return crmMeetRoomMapper.insertCrmMeetRoom(crmMeetRoom);
    }

    /**
     * 修改会议室
     * 
     * @param crmMeetRoom 会议室
     * @return 结果
     */
    @Override
    public int updateCrmMeetRoom(CrmMeetRoom crmMeetRoom)
    {
        return crmMeetRoomMapper.updateCrmMeetRoom(crmMeetRoom);
    }

    /**
     * 批量删除会议室
     * 
     * @param ids 需要删除的会议室主键
     * @return 结果
     */
    @Override
    public int deleteCrmMeetRoomByIds(Long[] ids)
    {
        return crmMeetRoomMapper.deleteCrmMeetRoomByIds(ids);
    }

    /**
     * 删除会议室信息
     * 
     * @param id 会议室主键
     * @return 结果
     */
    @Override
    public int deleteCrmMeetRoomById(Long id)
    {
        return crmMeetRoomMapper.deleteCrmMeetRoomById(id);
    }
}
